﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013FB RID: 5115
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyGameSkill : IMessage<TrainPartyGameSkill>, IMessage, IEquatable<TrainPartyGameSkill>, IDeepCloneable<TrainPartyGameSkill>, IBufferMessage
	{
		// Token: 0x17004085 RID: 16517
		// (get) Token: 0x0600E51C RID: 58652 RVA: 0x00264C2D File Offset: 0x00262E2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyGameSkill> Parser
		{
			get
			{
				return TrainPartyGameSkill._parser;
			}
		}

		// Token: 0x17004086 RID: 16518
		// (get) Token: 0x0600E51D RID: 58653 RVA: 0x00264C34 File Offset: 0x00262E34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyGameSkillReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004087 RID: 16519
		// (get) Token: 0x0600E51E RID: 58654 RVA: 0x00264C46 File Offset: 0x00262E46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyGameSkill.Descriptor;
			}
		}

		// Token: 0x0600E51F RID: 58655 RVA: 0x00264C4D File Offset: 0x00262E4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameSkill()
		{
		}

		// Token: 0x0600E520 RID: 58656 RVA: 0x00264C55 File Offset: 0x00262E55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameSkill(TrainPartyGameSkill other) : this()
		{
			this.mOCKIOPKEKE_ = other.mOCKIOPKEKE_;
			this.skillId_ = other.skillId_;
			this.skillLevel_ = other.skillLevel_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E521 RID: 58657 RVA: 0x00264C92 File Offset: 0x00262E92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameSkill Clone()
		{
			return new TrainPartyGameSkill(this);
		}

		// Token: 0x17004088 RID: 16520
		// (get) Token: 0x0600E522 RID: 58658 RVA: 0x00264C9A File Offset: 0x00262E9A
		// (set) Token: 0x0600E523 RID: 58659 RVA: 0x00264CA2 File Offset: 0x00262EA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MOCKIOPKEKE
		{
			get
			{
				return this.mOCKIOPKEKE_;
			}
			set
			{
				this.mOCKIOPKEKE_ = value;
			}
		}

		// Token: 0x17004089 RID: 16521
		// (get) Token: 0x0600E524 RID: 58660 RVA: 0x00264CAB File Offset: 0x00262EAB
		// (set) Token: 0x0600E525 RID: 58661 RVA: 0x00264CB3 File Offset: 0x00262EB3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillId
		{
			get
			{
				return this.skillId_;
			}
			set
			{
				this.skillId_ = value;
			}
		}

		// Token: 0x1700408A RID: 16522
		// (get) Token: 0x0600E526 RID: 58662 RVA: 0x00264CBC File Offset: 0x00262EBC
		// (set) Token: 0x0600E527 RID: 58663 RVA: 0x00264CC4 File Offset: 0x00262EC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillLevel
		{
			get
			{
				return this.skillLevel_;
			}
			set
			{
				this.skillLevel_ = value;
			}
		}

		// Token: 0x0600E528 RID: 58664 RVA: 0x00264CCD File Offset: 0x00262ECD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyGameSkill);
		}

		// Token: 0x0600E529 RID: 58665 RVA: 0x00264CDC File Offset: 0x00262EDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyGameSkill other)
		{
			return other != null && (other == this || (this.MOCKIOPKEKE == other.MOCKIOPKEKE && this.SkillId == other.SkillId && this.SkillLevel == other.SkillLevel && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E52A RID: 58666 RVA: 0x00264D38 File Offset: 0x00262F38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MOCKIOPKEKE != 0U)
			{
				num ^= this.MOCKIOPKEKE.GetHashCode();
			}
			if (this.SkillId != 0U)
			{
				num ^= this.SkillId.GetHashCode();
			}
			if (this.SkillLevel != 0U)
			{
				num ^= this.SkillLevel.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E52B RID: 58667 RVA: 0x00264DA9 File Offset: 0x00262FA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E52C RID: 58668 RVA: 0x00264DB1 File Offset: 0x00262FB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E52D RID: 58669 RVA: 0x00264DBC File Offset: 0x00262FBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SkillLevel != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.SkillLevel);
			}
			if (this.SkillId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.SkillId);
			}
			if (this.MOCKIOPKEKE != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.MOCKIOPKEKE);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E52E RID: 58670 RVA: 0x00264E34 File Offset: 0x00263034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MOCKIOPKEKE != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MOCKIOPKEKE);
			}
			if (this.SkillId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillId);
			}
			if (this.SkillLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillLevel);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E52F RID: 58671 RVA: 0x00264EA4 File Offset: 0x002630A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyGameSkill other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MOCKIOPKEKE != 0U)
			{
				this.MOCKIOPKEKE = other.MOCKIOPKEKE;
			}
			if (other.SkillId != 0U)
			{
				this.SkillId = other.SkillId;
			}
			if (other.SkillLevel != 0U)
			{
				this.SkillLevel = other.SkillLevel;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E530 RID: 58672 RVA: 0x00264F08 File Offset: 0x00263108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E531 RID: 58673 RVA: 0x00264F14 File Offset: 0x00263114
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 48U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.MOCKIOPKEKE = input.ReadUInt32();
						}
					}
					else
					{
						this.SkillId = input.ReadUInt32();
					}
				}
				else
				{
					this.SkillLevel = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005AAC RID: 23212
		private static readonly MessageParser<TrainPartyGameSkill> _parser = new MessageParser<TrainPartyGameSkill>(() => new TrainPartyGameSkill());

		// Token: 0x04005AAD RID: 23213
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005AAE RID: 23214
		public const int MOCKIOPKEKEFieldNumber = 8;

		// Token: 0x04005AAF RID: 23215
		private uint mOCKIOPKEKE_;

		// Token: 0x04005AB0 RID: 23216
		public const int SkillIdFieldNumber = 6;

		// Token: 0x04005AB1 RID: 23217
		private uint skillId_;

		// Token: 0x04005AB2 RID: 23218
		public const int SkillLevelFieldNumber = 5;

		// Token: 0x04005AB3 RID: 23219
		private uint skillLevel_;
	}
}
